var InvokeMethod = Java.type('nashorn.InvokeMethod');
var Instant = Java.type('java.time.Instant');
var Duration = Java.type('java.time.Duration');
var LogManager = Java.type('org.apache.logging.log4j.LogManager');
var Logger = Java.type('org.apache.logging.log4j.Logger');
var log = LogManager.getLogger(InvokeMethod.class);
var ik = new InvokeMethod();
var start = Instant.now();
ik.init();
var to = jss.asd;
var s1 = ik.service(to);
var s2 = ik.service2();
var s3 = ik.service3();
log.info(s1);
log.info(s2);
log.info(s3);
ik.destory();
var end = Instant.now();
var d = Duration.between(start, end);
print("执行时间:" + d.toMillis() + "ms");
